package Module;

import java.rmi.Remote;
import java.rmi.RemoteException;

/*
 * This provides an interface of work service in workers.
 */
public interface WorkService extends Remote{

    /* Execute a work unit */
    public ResultUnit execute(WorkUnit workUnit, String authCode) 
    												throws RemoteException;
    
    public void cancelJob(String authCode) throws RemoteException ;
    
    
    
}
